class str:
    def __init__(self, title, name):
        self.title = title
        self.name = name

    def __str__(self):  # 字符串
        return f"标题《{self.title}》,作者:{self.name}"


s = str(f"py学习从入门到入土",'ayin')
print(s)